#pragma once

#include "DlgHomeTab.h"
#include "afxwin.h"
// CDlgResize dialog

class CDlgResize : public CDialogEx
{
	DECLARE_DYNAMIC(CDlgResize)

public:
	CDlgResize(CWnd* pParent = NULL);   // standard constructor
	CDlgResize(CDlgHomeTab* pParent);
	virtual ~CDlgResize();

// Dialog Data
	enum { IDD = IDD_DIALOG_RESIZE };

protected:
	virtual BOOL OnInitDialog();
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	CDlgHomeTab *m_pHomeTab;
	DECLARE_MESSAGE_MAP()
public:
	afx_msg void OnBnClickedOk();
	BOOL m_isPreserve;
	BOOL m_isEditWidth;
	int m_width;
	int m_height;
	float m_ratio;
	afx_msg void OnEnChangeEditWidth();
	CEdit m_ctrWidth;
	CEdit m_ctrHeight;
	afx_msg void OnEnChangeEditHeight();
	afx_msg void OnEnSetfocusEditWidth();
	afx_msg void OnEnSetfocusEditHeight();
	CButton m_ctrCheckPreserve;
	afx_msg void OnBnClickedCheckPreserve();
};
